﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PMS.ENT
{
    public class UserENT
    {
        public static string _Table = "Users";

        public int UserID { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public string FullName { get; set; }
        public DateTime DateOfBirth { get; set; }
        public string Sex { get; set; }
        public string Email { get; set; }
        public string ImagePath { get; set; }
        public int DepartmentID { get; set; }
        public int RoleID { get; set; }
        public int CreatedBy { get; set; }
        public DateTime CreatedDate { get; set; }
        public int UpdateBy { get; set; }
        public DateTime UpdateDate { get; set; }
        public int Isdeleted { get; set; }
        public string UserCode{ get; set; }

        public string DepartmentName { get; set; }
        public string Role { get; set; }
        public UserENT()
        { }

    }

    public enum UserColumns
    {
        UserID,
        UserName,
        Password,
        FullName,
        DateOfBirth,
        Sex,
        Email,
        ImagePath,
        DepartmentID,
        RoleID,
        CreatedBy,
        CreatedDate,
        UpdateBy,
        UpdateDate,
        Isdeleted,
        UserCode,
        DepartmentName,
        Role
    }

    public class UserCollection : List<UserENT>
    {
        public UserCollection()
            : base()
        { }

        public UserCollection(IEnumerable<UserENT> collection)
            : base(collection)
        { }

        public UserCollection(ICollection<UserENT> collection)
            : base(collection)
        { }
        
    }
}
